<template>
    <div class="dialog">
        <div class="dialog-con comfirmStockDetail">
            <div class="com">入库详情</div>
            <div class="confirmshop">
                <el-table
                    :data="houseDetail"
                    border
                    highlight-current-row
                    align="center"
                    style="width: 100%"
                    ref="table">
                    <el-table-column
                    prop="username"
                    label="入库人"
                    align="center">
                    </el-table-column>
                    <el-table-column
                    prop="createtime"
                    label="入库时间"
                    align="center"
                    width="180">
                    <template slot-scope="scope">
                        <span>{{scope.row.createtime | createtime}}</span>
                    </template>
                    </el-table-column>
                    <el-table-column
                    prop="purNum"
                    label="入库数量"
                    align="center">
                    </el-table-column>
                    <el-table-column
                    prop="memo"
                    label="备注"
                    align="center">
                    </el-table-column>
                </el-table>
            </div>
            <div class="stockCon">
                <el-button @click="conStock" size="medium" >确认</el-button>
                <el-button @click="cancelStock" size="medium">取消</el-button>
            </div> 
        </div>
    </div>
</template>

<script>
import {localStorage} from 'js/localStorage'
import api from 'js/service'

export default {
    inject:['reload'],
    data(){
        return{
          
        }
    },
    props:{
        houseDetail:{
            type:Array,
            default:[]
        },
    },
    filters:{
        createtime(val){
            return val.slice(0,19)
        }
    },
    methods:{
        cancelStock(){
            this.$emit('closeDialog')
        },
        conStock(){
            this.$emit('closeDialog')
        }
    }
}
</script>
<style lang="scss" scoped>
.comfirmStockDetail{
    width:600px;
    height:500px;
    .com{
        line-height:40px;
        background: #eee;
        text-align: center;
        margin-bottom:20px;
    }
    .confirmshop{
        padding:0 10px;
        height: 330px;
        overflow-y: auto;
    }
    .stockCon{
        width:100%;
        text-align:center;
        padding-top:30px;
    }
}
</style>



